import request from '../../index'
import type { Account } from './types'
export const LoginAccount = (data: Account) => request.post('/login', data)
export const LoginUserInfo = (params: { id: string | number }) =>
  request.get(`/users/${params.id}`, null)
export const LoginRoleMenu = (params: { roleId: string | number }) =>
  request.get(`/role/${params.roleId}/menu`, null)
